package com.cwf.metadatamanage.service;

import com.cwf.metadatamanage.model.dtos.TableInfo;
import com.cwf.metadatamanage.exception.NotFoundException;
import com.cwf.metadatamanage.exception.ServerException;
import com.cwf.metadatamanage.model.dtos.DBTables;
import com.cwf.metadatamanage.model.vo.req.MetadataCollectReq;

import java.util.List;

public interface MetadataCollectService {

    List<String> getSourceDatabases(Long id) throws NotFoundException, ServerException;

    DBTables getDatabaseTables(Long id, String dbName) throws NotFoundException;

    TableInfo getTableInfo(Long id, String dbName, String tableName) throws NotFoundException;

    boolean metadataCollectBySource(MetadataCollectReq metadataCollectReq);

}
